﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/System.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="System_Pages_MyAccount_ChangePassword" %>
<%@ Register Src="~/System/Controls/FieldTemplates/PasswordText.ascx" TagName="PasswordText" TagPrefix="ucc" %>
<%@ Register Src="~/System/Controls/FieldTemplates/MessageText.ascx" TagName="MessageText" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SiteFox_Left" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SiteFox_Title" Runat="Server">
    <asp:Label ID="lab_Title" runat="server" Text="<%$ Resources:dcCommon, dc_ChangePassword %>" CssClass="content-header-title" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SiteFox_Main" Runat="Server">
    <ucc:PasswordText ID="ucc_CurrentPassword" runat="server" IsReq="true" Title="<%$ Resources:dcCommon, dc_CurrentPassword %>" />
    <div class="FieldTemplates_Row">
        <asp:Label ID="lab_Password_Title" runat="server" CssClass="Label" Text="<%$ Resources:dcCommon, dc_NewPassword %>" />
        <asp:TextBox ID="tb_Password_Value" runat="server" CssClass="TextBox" TextMode="Password" MaxLength="20" />
        <asp:RequiredFieldValidator ID="rfv_Password" runat="server" ErrorMessage="*" Text="*" ValidationGroup="mainValGroup" ControlToValidate="tb_Password_Value" CssClass="RequiredFieldValidator" />
    </div>
    <div class="FieldTemplates_Row">
        <asp:Label ID="lab_Password2_Title" runat="server" CssClass="Label" Text="<%$ Resources:dcCommon, dc_NewPasswordAgain %>" />
        <asp:TextBox ID="tb_Password2_Value" runat="server" CssClass="TextBox" TextMode="Password" MaxLength="20" />
        <asp:RequiredFieldValidator ID="rfv_Password2" runat="server" ErrorMessage="*" Text="*" ValidationGroup="mainValGroup" ControlToValidate="tb_Password2_Value" CssClass="RequiredFieldValidator" />
        <asp:CompareValidator ID="cv_Password" runat="server" ErrorMessage="*" Text="<%$ Resources:dcCommon, dc_PasswordsAreNotSame %>" 
            ControlToCompare="tb_Password2_Value" ControlToValidate="tb_Password_Value" Display="Dynamic" />
    </div>
    <ucc:MessageText ID="ucc_Message" runat="server" />
    <div class="FieldTemplates_Row">
        <asp:LinkButton ID="lib_Save" runat="server" CssClass="LinkButton" ValidationGroup="mainValGroup" Text="<%$ Resources:dcCommon, dc_Save %>" onclick="lib_Save_Click" />
    </div>
</asp:Content>

